<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,bean.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/docs.min.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
	<%
		List li = new ArrayList();
		DepartmentEntity d1 = new DepartmentEntity();
		d1.setDepartment_id(11);
		d1.setDepartment_name("小明");
		d1.setLocation_id(101);
		li.add(d1);

		DepartmentEntity d2 = new DepartmentEntity();
		d2.setDepartment_id(12);
		d2.setDepartment_name("小红");
		d2.setLocation_id(102);
		li.add(d2);

		DepartmentEntity d3 = new DepartmentEntity();
		d3.setDepartment_id(13);
		d3.setDepartment_name("小黄");
		d3.setLocation_id(103);
		li.add(d3);

		request.setAttribute("list", li);
	%>

	<table class="table table-hover">
		<tr>
			<td>序号</td>
			<td>department_id</td>
			<td>department_name</td>
			<td>location_id</td>
		</tr>
		<c:forEach items="${requestScope.list }" var="eachvalue"
			varStatus="statu">
			<tr>
				<td><c:out value="${statu.index + 1 }"></c:out></td>
				<td><c:out value="${eachvalue.department_id }"></c:out></td>
				<td><c:out value="${eachvalue.department_name }"></c:out></td>
				<td><c:out value="${eachvalue.location_id }"></c:out></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>